package com.woniu108.product.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 商品活动表
 * </p>
 *
 * @author yanxi
 * @since 2024-05-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class ProductActive implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 活动编号
     */
    @TableId(value = "active_id", type = IdType.AUTO)
    private Integer activeId;

    /**
     * 商品编号
     */
    private Integer pItemId;

    /**
     * 开始时间
     */
    private LocalDateTime startTime;

    /**
     * 结束时间
     */
    private LocalDateTime endTime;

    /**
     * 活动折扣
     */
    private BigDecimal cutDownPercent;


}
